<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>首页----syuebook留言本系统</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>
	<body background="img/01.jpg" leftmargin="0" topmargin="0">
		<jsp:include page="header.jsp" />
		<table width="770" height="20" border="0" align="center" cellpadding="0" cellspacing="0"
			bgcolor="#ffffff">
			<tr>
				<td>&nbsp;</td>
			</tr>
		</table>
		<table width="770" height="30" border="0" align="center" cellpadding="0" cellspacing="0"
			bgcolor="#ffffff">
			<tr>
				<td width="21%" align="center"><a href="insert.zhoulang"><img src="img/05.jpg" width="120" height="28" border="0"></a></td>
				<td width="22%"><a href="admin.zhoulang"><img src="img/06.jpg" width="120" height="28" border="0"></a></td>
				<td width="40%">&nbsp;</td>
				<td width="17%"><a href="default.zhoulang" class="css">[返回首页]</a></td>
			</tr>
		</table>
		<table width="770" height="20" border="0" align="center" cellpadding="0" cellspacing="0"
			bgcolor="#ffffff">
			<tr>
				<td>&nbsp;</td>
			</tr>
		</table>
		<table width="770" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
			<tr>
				<td>
				<c:forEach items="${bookList}" var="book">
					<table width="720" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#dde3ce">
						<tr>
							<td width="109" rowspan="2" align="center" bgcolor="#ffffff" class="css">
								<img src="img/${book.bookface}.gif" width="48" height="48"><br><br>
								<font color="#ff0000">${book.username}</font>
							</td>
							<td width="224" bgcolor="#ffffff" class="css">发表时间：${book.booktime}</td>
							<td width="285" bgcolor="#ffffff" class="css">
								<table width="60%" height="19" border="0" align="right" cellpadding="0" cellspacing="0">
									<tr>
										<td><img src="img/friend.gif" alt="来自" width="18" height="18"></td>
										<td><img src="img/qq.gif" alt="qq号" width="18" height="18"></td>
										<td><img src="img/MAIL.gif" alt="Email" width="18" height="18"></td>
										<td><img src="img/ip.gif" alt="IP" width="18" height="18" border="0"></td>
										<td><img src="img/url.gif" alt="主页" width="18" height="18"></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td colspan="2" bgcolor="#ffffff" class="css">
								<font color="#009900"><strong><font color="#cc6600">${book.booktitle}</font></strong><br>
								${book.booknote}<br>
								</font>
								<font color="#666666">------------------------------------------------------------------------------</font>
								<font color="#666666">&nbsp; </font><a href="del.zhoulang?id=${book.bookid}">[删除]</a><br>
							</td>
						</tr>
					</table>
					</c:forEach>
					<table width="770" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
						<tr>
							<td>&nbsp;</td>
						</tr>
					</table>
					<table width="770" border="0" align="center" class="css" bgcolor="#ffffff">
						<tr>
							<td align="center">
								<div class="scott">
									${bookPage}
								</div>
							</td>
						</tr>
					</table> 
				</td>
			</tr>
		</table>
		<jsp:include page="foot.jsp" />
	</body>
</html>